if articles
  -
    // 按时间降序渲染文章顺序
    articles.sort((a, b) => {
      const datea = new Date(a.date);
      const dateb = new Date(b.date);
      timea = datea.getTime();
      timeb = dateb.getTime();
      return timeb - timea;
    });
  each article in articles
    tr
      td= article.title
      td= article.author
      td= article.category
      td.text-center= article.date
      td.text-center= article.state
      td.text-center.
        #[a.btn.btn-default.btn-xs(href=`article_edit.html?id=${article.id}` data-id=article.id) 编辑]
        #[a.btn.btn-danger.btn-xs.delete(href="javascript:void(0);" data-id=article.id) 删除]
else